<div id="eventList">
<h3><center>Latest Events</center></h3>
<ul id="eventNav">
  <% for event in @eventList %>
    <li><%= link_to event.title, event %> 
    <% if controller.controller_name.downcase.eql?("home") %>
      <ul>
        <% [5,10,30,60].each do |t| %>
        <li><%= link_to_remote "+#{t}", {:url => traces_path(:trace => {:event_id => event.id, :minSpent => t, :description => "+#{t}"}), :method => :post} %></li>
        <% end %>
      </ul>
    <% end %>
  </li>
  <% end %>
</ul>
</div>